package com.haoxi.gateway.test.gatewayserver;


import java.net.Socket;

/**
 * @author Administrator
 * Window - Preferences - Java - Code Style - Code Templates
 */

public class MOServer extends PooledServer {
    public static int i=0;
    public MOServer(int aListenPort, int maxConnections) {
        super(aListenPort, maxConnections);
    }
    
    /**
     * 处理请求
     * @param connectionToHandle socket请求
     */
    public void handleConnection(Socket connectionToHandle) {
        MOConnHandler.processRequest(connectionToHandle);
    }
    
    /**
     * test method
     */
    public static void main(String[] args) {
        MOServer server = new MOServer(5100, 5);
        server.startServer();
    }
    
}
